package com.partners.dao.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author liangyongle
 * @date 2019-01-17
 */
@Data
public class OrderInputDTO {

    /**
     * 下单人
    * */
    @NotNull(message = "uid不能为空")
    private Integer uid;

    @NotNull(message = "购买人id不能为空")
    @JsonProperty("buy_id")
    private Integer buyId;

    @NotNull(message = "订单金额不能为空")
    @JsonProperty("total_money")
    private Integer totalMoney;

}
